{extend name="common:base" /}

{block name="page_title"}{$controllerName}{/block}

{block name="content"}
<div class="box">
    <div class="box-header with-border">
    </div>
    <div class="box-body">
        {if(!empty($methodInfo))}
        <div>
            <div>
                <h4>接口详细说明</h4>
            </div>
            {volist name="methodInfo['methodInfo']" id="eee"}
            {if(!empty($eee['explain']))}
            <div>
                <pre>{$eee['explain']}</pre>
            </div>
            {/if}
            {/volist}
        </div>
        <div>
            <div>
                <h4>请求地址</h4>
            </div>
            <div>
                <pre>{$url}</pre>
            </div>
        </div>
        <div>
            <div>
                <h4>请求头</h4>
            </div>
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th>参数名</th>
                    <th>是否必传</th>
                    <th>参数中文名称</th>
                    <th>默认值</th>
                    <th>详细说明</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>v</td>
                    <td>否</td>
                    <td>API版本号</td>
                    <td>v1</td>
                    <td></td>
                </tr>
                {if(empty($methodInfo['isNoCheckToken']) || count($methodInfo['isNoCheckToken']) < 1 && false === $methodInfo['isNoCheckToken'][0])}
                <tr>
                    <td>token</td>
                    <td>是</td>
                    <td>凭证</td>
                    <td></td>
                    <td></td>
                </tr>
                {/if}
                </tbody>
            </table>
        </div>
        <div>
            <div>
                <h4>请求参数</h4>
            </div>
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th>参数名</th>
                    <th>是否必传</th>
                    <th>是否系统传值</th>
                    <th>参数中文名称</th>
                    <th>默认值</th>
                    <th>详细说明</th>
                </tr>
                </thead>
                <tbody>
                {if(!empty($methodInfo['methodParam']))}
                {volist name="methodInfo['methodParam']" id="v"}
                <tr>
                    <td>{$v['name']}</td>
                    <td>{$v['require'] == '1' ? '是' : '否'}</td>
                    <td>{:empty($v['sys']) ? '否' : '是'}</td>
                    <td>{$v['text']}</td>
                    <td>{$v['default']|default=''}</td>
                    <td>{$v['explain']|default=''}</td>
                </tr>
                {/volist}
                {/if}
                </tbody>
            </table>
        </div>
        <div>
            <div>
                <h4>请求示例</h4>
            </div>
            <div>
                <pre>

                </pre>
            </div>
        </div>
        <div>
            <div>
                <h4>返回参数</h4>
            </div>
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th>参数名</th>
                    <th>是否为空</th>
                    <th>参数类型</th>
                    <th>参数中文名称</th>
                    <th>默认值</th>
                    <th>详细说明</th>
                </tr>
                </thead>
                <tbody>
                {if(!empty($methodInfo['returnParam']))}
                {volist name="methodInfo['returnParam']" id="v"}
                <tr>
                    <td>
                        {if(!empty($v['parent']))}
                        --
                        {/if}
                        {$v['name']}
                    </td>
                    <td>{$v['require'] == '1' ? '否' : '是'}</td>
                    <td>{$v['type']}</td>
                    <td>{$v['text']}</td>
                    <td>{$v['default']|default=''}</td>
                    <td>{$v['explain']|default=''}</td>
                </tr>
                {/volist}
                {/if}
                </tbody>
            </table>
        </div>
        <div>
            <div>
                <h4>返回示例</h4>
            </div>
            <div>
                <pre>

                </pre>
            </div>
        </div>
        {/if}
    </div>
    <div class="box-footer clearfix">
        <div id="page1" class="pull-right"></div>
    </div>
</div>
{/block}

{block name="script"}

{/block}